package com.lc.controller;

import com.github.pagehelper.PageInfo;
import com.guigu.viwe.PageVo;
import com.lc.service.WorkloadService;
import com.lc.vo.Interventionprogramview;
import com.lc.vo.interventionTotalView;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/lcwork")
public class WorkloadController {

    @Resource
    private WorkloadService service;

    /**
     * 统计图
     * @param view
     * @return
     */
    @PostMapping("/queryInterventionprogram")
    public Interventionprogramview queryInterventionprogram(@RequestBody() Interventionprogramview view) {
       return this.service.queryInterventionprogram(view);
    }

    /**
     * 表格
     */
    @PostMapping("/quersumliang")
    public  List<interventionTotalView> quersumliang(){
        return this.service.quersumliangService();
    }

}
